Table.getSortDirections

Returns an Array of all the directions that are currently sorted. The position of the sort in the Array matches the position of the column name within the Array returned from #getSortColumns(). This can be useful to reestablish a sort order created by the user after a fetchtable.

The sort order directions are defined as #SORT_DIRECTION_ASCENDING or #SORT_DIRECTION_DESCENDING.

See #getSortDirections() for documentation on sort directions
See #sort(TableColumn[], String[]) for documentation on sorting columns

Javascript examples:

 var sortColumns = tables.ORDERS.getSortColumns();
 var sortDirections = tables.ORDERS.getSortDirections();
 tables.ORDERS.fetchTable();
 tables.ORDERS.sort(sortColumns, sortDirections);
 

returns UNKNOWNjava.lang.String[]